﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using iShoppingDTO;
using iShoppingBUS;

namespace iShopping.Member.UserControl
{
    public partial class ChiTietSanPham : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String maSamPham = Request.QueryString["id"].ToString().Trim();
            DataTable dt = SanPhamBUS.getSanPhamOfMaSanPhams(maSamPham);
            FormView1.DataSource = dt;
            FormView1.DataBind();
        }
        protected void ImageButton1_Click(object sender, EventArgs e)
        {
            String maSamPham = Request.QueryString["id"].ToString().Trim();
            Response.Redirect("~/Member/ChiTietGioHang.aspx?idsanpham=" + maSamPham);
        }
      
    }
}